package com.classes.constants.logic;

import java.nio.ByteBuffer;

public class Constants_float_info extends ConstantsAbstract {
    private float num;

    public Constants_float_info(byte tag) {
        super(tag);
    }

    @Override
    public void parse(ByteBuffer buffer) {
        num = buffer.getFloat();
    }

    @Override
    public String toString() {
        return "tag=" + tag + " num=" + num;
    }

    @Override
    public String getContent() {
        return num + "";
    }
}
